from django.contrib import admin
from django.db import models
from feedbag.apps.blog.models import Post, Comment

class PostAdmin(admin.ModelAdmin):
	ordering  = ('-created_at', 'id')
	prepopulated_fields = {"slug": ("title",)}	
admin.site.register(Post, PostAdmin)    

class CommentAdmin(admin.ModelAdmin):
	ordering  = ('-created_at', 'id')
admin.site.register(Comment, CommentAdmin)    